import React, { Component } from 'react';
/* 
    1.父传之
    通过属性传值

*/
class Dome extends Component{
  render(){
    return(
      <h1>父传过来的属性:{this.props.msg}</h1>
    )
  }
}

class App extends Component {
  state ={
    msg:"🐂"
  }
  render() {
    return (
      <Dome msg={this.state.msg}></Dome>
    );
  }
}

export default App;
